package com.cmict.data.bpm.convert.definition;

import com.cmict.data.bpm.controller.admin.definition.vo.form.*;
import com.cmict.data.bpm.dal.dataobject.definition.ExternalFormDO;
import com.cmict.data.framework.common.pojo.PageResult;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 工作流外部表单定义 Convert
 *
 * @author 系统管理员
 */
@Mapper
public interface ExternalFormConvert {

    ExternalFormConvert INSTANCE = Mappers.getMapper(ExternalFormConvert.class);

    ExternalFormDO convert(ExternalFormCreateReqVO bean);

    ExternalFormDO convert(ExternalFormUpdateReqVO bean);

    ExternalFormRespVO convert(ExternalFormDO bean);

    List<ExternalFormRespVO> convertList(List<ExternalFormDO> list);

    PageResult<ExternalFormRespVO> convertPage(PageResult<ExternalFormDO> page);

    List<ExternalFormExcelVO> convertList02(List<ExternalFormDO> list);

    List<BpmFormSimpleRespVO> convertList03(List<ExternalFormDO> list);
}
